Carbon


LineTo

Header: Quickdraw.h Carbon status: Supported

Draws a line from the graphics pen’s current location to a new location.

void LineTo (
    SInt16 h, 
    SInt16 v
);
Parameter descriptions
h

The horizontal coordinate of the graphics pen’s new location.

v

The vertical coordinate of the graphics pen’s new location.

DISCUSSION

The LineTo function draws a line from the graphics pen’s current location in the current graphics port to the new location (h,v), which you specify in the local coordinates of the current graphics port. If you are using LineTo to draw a region or polygon, its outline is infinitely thin and is not affected by the values of the pnSize, pnMode, or pnPat field of the graphics port.

SPECIAL CONSIDERATIONS

The LineTo function may move or purge memory blocks in the application heap; do not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)